package net.guerlab.smart.wx.core.searchparams;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import net.guerlab.smart.platform.commons.searchparams.OrderSearchParams;
import net.guerlab.spring.searchparams.SearchModel;
import net.guerlab.spring.searchparams.SearchModelType;

import javax.persistence.Column;
import java.util.Collection;

/**
 * 用户标签搜索参数
 *
 * @author guer
 */
@Setter
@Getter
@ApiModel("用户标签搜索参数")
public class UserTagSearchParams extends OrderSearchParams {

    /**
     * 标签ID
     */
    @ApiModelProperty("标签ID")
    private Long tagId;

    /**
     * 标签ID列表
     */
    @ApiModelProperty("标签ID列表")
    @Column(name = "tagId")
    @SearchModel(SearchModelType.IN)
    private Collection<Long> tagIds;

    /**
     * 标签名称
     */
    @ApiModelProperty("标签名称")
    private String tagName;

    /**
     * 标签名称关键字
     */
    @ApiModelProperty("标签名称关键字")
    @Column(name = "tagName")
    @SearchModel(SearchModelType.LIKE)
    private String tagNameLike;

}
